{
  "properties" : { },
  "id" : "73baad134cdf4b8a95ace811e0d79bd3",
  "script" : null,
  "groupId" : "74af8e1135d2474eb9b6b4081e6d5967",
  "name" : "新增拓扑分组",
  "createTime" : 1727071035483,
  "updateTime" : 1726274539081,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "save",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"groupName\": \"test2324\",\r\n    \"parentId\": 9999,\r\n    \"remark\": \"\",\r\n    \"sort\": \"\"\r\n}",
  "headers" : [ {
    "name" : "blade-auth",
    "value" : "bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwicG9zdF9pZCI6IjExMjM1OTg4MTc3Mzg2NzUyMDEiLCJ1c2VyX2lkIjoiMTEyMzU5ODgyMTczODY3NTIwMSIsInJvbGVfaWQiOiIxMTIzNTk4ODE2NzM4Njc1MjAxIiwidXNlcl9uYW1lIjoiYWRtaW4iLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJkZXRhaWwiOnsidHlwZSI6IndlYiJ9LCJ0b2tlbl90eXBlIjoiYWNjZXNzX3Rva2VuIiwiZGVwdF9pZCI6IjE3OTM0OTQ0MTgwODMzMTk4MTAiLCJhY2NvdW50IjoiYWRtaW4iLCJjbGllbnRfaWQiOiJzYWJlciIsImV4cCI6MTcyNjA0NTA0MSwibmJmIjoxNzI2MDQxNDQxfQ.F6grFMPoqDGF2cNSL8uQ3hiFiH90x9_SPvvrz2XCa3ZtqCkaMi9-ZIvgVVkwPVgLuTk3K-Bwp56_dqtgI5tFMQ",
    "description" : null,
    "required" : false,
    "dataType" : "String",
    "type" : null,
    "defaultValue" : null,
    "validateType" : null,
    "error" : null,
    "expression" : null,
    "children" : null
  } ],
  "paths" : [ ],
  "responseBody" : "{\n    \"code\": 500,\n    \"success\": false,\n    \"data\": {},\n    \"msg\": \"系统维护中，请稍后重试。\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================
  import  java.util.UUID
  import  redis

var token = header.get("blade-auth")::string;
var dccId = redis.get(token.substring(7))


  if (body.get("parentId") == null) {
      body.put("parentId", "0");
  }
  body.put("id", UUID.randomUUID().toString());
    body.put("dccId", dccId);

  return db.table("ndmp_group").insert(body);